import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
// import { t } from '/@/hooks/web/useI18n';

const dashboard: AppRouteModule = {
  path: '/company',
  name: '公司',
  component: LAYOUT,
  redirect: '/company/goods',
  meta: {
    orderNo: 10,
    icon: 'ion:grid-outline',
    title: '公司',
  },
  children: [
    {
      path: 'goods',
      name: 'CompanyGoods',
      component: () => import('/@/views/company/goods/index.vue'),
      meta: {
        // affix: true,
        title: '商品管理',
      },
    },
    {
      path: 'info',
      name: 'CompanyInfo',
      component: () => import('/@/views/company/info/index.vue'),
      meta: {
        title: '法人设置',
      },
    },
    {
      path: 'website',
      name: 'CompanyWebsite',
      component: () => import('/@/views/company/website/index.vue'),
      meta: {
        title: '网站设置',
      },
    },
    {
      path: 'article',
      name: 'CompanyArticle',
      component: () => import('/@/views/company/article/Editor.vue'),
      meta: {
        title: '发表软文',
      },
    },
  ],
};

export default dashboard;
